import { BaseType } from '@/api/common/types'

export interface UserForm {
    id: number
    name: string
    userName: string
    password: string
    confirmPassword: string
    nickName: string
    email: string
    phoneNumber: string
    avatar: string
    gender: number | string
    age: number
    address: string[]
    description: string
    isEnabled: boolean
    roleIds: number[]
}
export interface UserType extends UserForm, BaseType {
    lastLoginDateTime: string
}

export interface UpdatePasswordForm {
    id: number
    oldPassword: string
    newPassword: string
    newConfirmPassword: string
}
export interface UpdateUserInfoForm {
    id: number
    name?: string
    nickName?: string
    description?: string
}
